home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000244_news@newsmaster….columbia.edu _Thu May 29 11:54:44 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA01975
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 29 May 1997 11:54:43 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA19698
for kermit.misc@watsun; Thu, 29 May 1997 11:54:43 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: !READ
Date: 29 May 1997 15:54:40 GMT
Organization: Columbia University
Lines: 37
Message-ID: <5mk8s0$j7g$1@newsmaster.cc.columbia.edu>
References: <1997May29.161158@merlin.ecid.cig.mot.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7094
In article <1997May29.161158@merlin.ecid.cig.mot.com>,
Robert Cornell <cornellr@merlin.ecid.cig.mot.com> wrote:
: I am having a little difficulty reading from commands that only output a
: single line such as crypt. I have a program that generates a logfile name.
: from ksh...
: $ rat -y
: /opt/rat/log/none-cornellr.log
:
: from kermit...
: C-Kermit>open !read rat -y
: C-Kermit>read line
: C-Kermit>echo \m(line)
:
: C-Kermit>
:
: Whereas:
: C-Kermit>open !read ls -l
: C-Kermit>read line
: C-Kermit>echo \m(line)
: total 1768
:
: The manual doesn't give much away, just a VMS dir example!
: I'm sure this ain't a bug, what am I missing?
:
The definition of READ and !READ are that they read a "line", a line
being some text terminated by a line terminator such as LF, so Kermit
is behaving as documented.
However, this definition is probably a bit too strict. If you have source
code, you can apply Patch 34 from the PATCHES file:
http://www.columbia.edu/kermit/f/PATCHES
This allows the last or only line to be successfully read even if it is
not properly terminated.
- Frank